kvm: Add helper function for creating VM worker threads
authorJunaid Shahid <junaids@google.com>
Mon, 4 Nov 2019 11:22:02 +0000 (12:22 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Nov 2019 01:43:33 +0000 (01:43 +0000)
commit1a2adf24c6be53bc37676ccd96dbf516778390ef
tree2106830138963291c52ca8aa607eb5b4b84d0ed1
parent1d89f89974b4dcaf998ff5ea12db84c82331d84e
kvm: Add helper function for creating VM worker threads

Add a function to create a kernel thread associated with a given VM. In
particular, it ensures that the worker thread inherits the priority and
cgroups of the calling thread.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Gbp-Pq: Topic bugfix/x86/itlb_multihit
Gbp-Pq: Name 0005-kvm-Add-helper-function-for-creating-VM-worker-threa.patch
include/linux/kvm_host.h
virt/kvm/kvm_main.c